home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (C) 1989, 1993, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of AFPL Ghostscript.
-
- AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author or
- distributor accepts any responsibility for the consequences of using it, or
- for whether it serves any particular purpose or works at all, unless he or
- she says so in writing. Refer to the Aladdin Free Public License (the
- "License") for full details.
-
- Every copy of AFPL Ghostscript must include a copy of the License, normally
- in a plain ASCII text file named PUBLIC. The License grants you the right
- to copy, modify and redistribute AFPL Ghostscript, but only under certain
- conditions described in the License. Among other things, the License
- requires that the copyright notice and this notice be preserved on all
- copies.
- */
-
- /*$Id: gserrors.h,v 1.2 2000/09/19 19:00:28 lpd Exp $ */
- /* Error code definitions */
-
- #ifndef gserrors_INCLUDED
- # define gserrors_INCLUDED
-
- /* A procedure that may return an error always returns */
- /* a non-negative value (zero, unless otherwise noted) for success, */
- /* or negative for failure. */
- /* We use ints rather than an enum to avoid a lot of casting. */
-
- #define gs_error_unknownerror (-1) /* unknown error */
- #define gs_error_interrupt (-6)
- #define gs_error_invalidaccess (-7)
- #define gs_error_invalidfileaccess (-9)
- #define gs_error_invalidfont (-10)
- #define gs_error_ioerror (-12)
- #define gs_error_limitcheck (-13)
- #define gs_error_nocurrentpoint (-14)
- #define gs_error_rangecheck (-15)
- #define gs_error_typecheck (-20)
- #define gs_error_undefined (-21)
- #define gs_error_undefinedfilename (-22)
- #define gs_error_undefinedresult (-23)
- #define gs_error_VMerror (-25)
- #define gs_error_unregistered (-29)
-
- #define gs_error_hit_detected (-99)
-
- #define gs_error_Fatal (-100)
-
- #endif /* gserrors_INCLUDED */
-